#pragma once
// 实现一个进度条

#include<stdio.h>
#include<unistd.h>  //usleep
#include<string.h>

#define TOP 100
#define NUM 102
#define STYLE '='
#define RIGHT '>'

#define COLOR1 "\033[0;31m"
#define COLOR2 "\033[0;32m"
#define COLOR3 "\033[0;33m"
#define COLOR4 "\033[0;34m"
#define NONE "\033[0m"

// 声明
//extern void Processbar();
//extern void Processbar(int speed);

//方法二
//单次进度
//extern  void Processbar_sigle(int rate);
extern void Processbar_sigle(int rate, int color);

void InitBar();
